home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 33
/
033.d81
/
letter right
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
4KB
|
142 lines
10 dimg$(80),da$(2,5):bk$="[164]":nc=76
20 a$(1)="[154] [206]ame:[159]"
30 a$(2)="[154][211]treet [193]ddress:[159]"
40 a$(3)="[154] [195]ity:[159]"
50 a$(4)="[154] [211]tate:[159]"
60 a$(5)="[154] [218]ipcode:[159]"
70 sp=7:print"[147]"chr$(142):gosub1210:lc=0:g=0
80 print"[147]"
120 gosub280:poke646,15:poke198,.
122 ul$="[204]owercase":ifsp=.thenul$="[213]ppercase"
124 sp$="[211]ingle-[211]pace":ifg=1thensp$="[196]ouble-[211]pace"
130 print"[159] [204]etter [210]ight"
135 print" [205]ain [205]enu"
140 print" [193][146]. [154][204]etter [195]ase: [159]"ul$
150 print" [194][146]. [154][211]pacing: [159]"sp$
160 print" [195][146]. [154][211]ender's [206]ame & [193]ddress"
180 print" [196][146]. [154][193]ddressee's [206]ame &[160][193]ddress"
210 print" [197][146]. [154][194]egin typing letter"
215 print" [198][146]. [154][209]uit"
220 print" [195]hoose [193] - [198]:[146] "
230 geta$:ifa$=""then230
240 a=asc(a$)-64:ifa<1ora>9then230
250 onagoto360,430,500,510,700,6000
260 return
270 :
280 print"[158]";
290 print"[176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]";
300 fora=1to23:print"[221]"spc(38)"[221]";:next
310 print"[173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192]";
320 poke2023,125:poke56295,7
350 return
360 sp=sp+7:ifsp=14thensp=.
420 goto120
430 g=g+1:ifg=2theng=.
480 goto120
500 ww$=" [211]ender's [206]ame & [193]ddress":wh=1:goto515
510 ww$=" [193]ddressee's [206]ame & [193]ddress":wh=2
515 print"[147]"ww$""
520 forz=1to5:onzgosub2000,2010,2020,2030,2040
530 da$(wh,z)=a$:next
540 print"[147]"ww$"":fora=1to5:print""a"[157].[159]"da$(wh,a):next
550 print"[197]nter the number next to the item you"
560 print"want to change, or press [[210][197][212][213][210][206]] if"
570 print"everything is [207][203]."
580 print"-->"bk$"[157]";:poke198,.
590 geta$:if(a$<"1"ora$>"5")anda$<>chr$(13)then590
600 ifa$=chr$(13)then80
610 printa$"":z=val(a$):onzgosub2000,2010,2020,2030,2040
620 da$(wh,z)=a$:goto540
700 print"[129][147][212]oday's date:[158]";:gosub60500:dt$=a$
720 goto800
800 print"[147]"
810 print" [208]osition paper to top of sheet. "
820 print"[[211][208][193][195][197]] to continue"
822 print"[[210][197][212][213][210][206]] for main menu."
824 geta$:ifa$=""then830
826 ifa$=chr$(13)then80
828 ifa$=" "then870
830 goto824
870 print"[147][208]ress [210][197][212][213][210][206][146] alone to exit."
890 open15,4,15:close15:ifst<>0then60600: rem no printer
892 open4,4,sp:lc=.
900 fort=1to10:print#4:next:lc=lc+10
910 a$=da$(1,2):gosub60000:print#4,spc(40)a$:lc=lc+1
920 ifg=1then print#4:lc=lc+1
930 a$=da$(1,3)+", "+da$(1,4)+" "+da$(1,5):gosub60000
940 print#4,spc(40)a$:lc=lc+1
950 ifg=1then print#4:lc=lc+1
960 a$=dt$:gosub60000:print#4,spc(40)a$:lc=lc+1
970 for t=1to4:print#4:next:lc=lc+1
980 a$=da$(2,1):gosub60000:print#4,a$:lc=lc+1
990 if g=1thenprint#4:lc=lc+1
1000 a$=da$(2,2):gosub60000:print#4,a$:lc=lc+1
1010 if g=1thenprint#4:lc=lc+1
1020 a$=da$(2,3)+", "+da$(2,4)+" "+da$(2,5):gosub60000
1030 print#4,a$:lc=lc+1
1040 fort=1to3:print#4:next:lc=lc+3
1050 a$="[196]ear "+da$(2,1)+",":gosub60000
1060 print#4,a$:lc=lc+1
1070 fort=1to3:print#4:next:lc=lc+4
1080 print"-->";
1090 a$="":gosub60500:gosub60000
1100 ifa$=""then1150
1110 print#4,a$:lc=lc+1
1120 ifg=1thenprint#4:lc=lc+1
1130 iflc=>56thenforx=1to18:print#4:next:lc=8
1140 goto1080
1150 print#4:print#4:print#4
1160 a$="[211]incerely,":gosub60000
1170 print#4,tab(45)a$:a$=da$(1,1):gosub60000
1180 print#4:print#4,tab(45)a$
1190 print#4:close 4
1200 goto80
1210 :
1230 rem *** title page ***
1240 :
1260 poke53280,11:poke53281,0:poke646,7
1270 print" [146] [146] [146] [146] [146] [223]"
1280 print" [146] [146] [146] [146] [146] [223]"
1290 print" [146] [146] [146] [146] [146] [146] "
1300 print" [146] [146] [146] [146] [146] [146][169]"
1310 print" [146] [146] [146] [146] [146] [223]"
1320 print" [146] [146] [146] [146] [146] [146][223] [223]"
1330 print" [146] [146] [146] [146] [146] [146] [223] "
1340 print" [146] [146] [146] [146] [146] [146] [223] "
1350 print" [223][146] [146] [169] [223][146] [146] [146] [146] [146]"
1360 print" [223][146] [146] [169] [146][169][223] [223][146] [146] [146] [146] [146]"
1370 print" [146] [146] [146] [146] [146] [146] [146] [146]"
1380 print" [146][169] [146] [146] [146] [146] [146] [146]"
1390 print" [223][146] [146] [223][146] [146] [146] [146]"
1400 print" [146][223] [223][146] [146] [146] [146] [146] [146] [146]"
1410 print" [146] [223] [146] [146] [223] [146] [146] [146] [146] [146] "
1420 print" [146] [223] [146] [146] [223] [146][169] [146] [146] [146] [146] [209]"
1430 print" v2.5 1986 by kenny lawson "
1440 print" press any key":poke198,.:wait 198,1
1450 return
2000 printa$(1);:gosub60500:return
2010 printa$(2);:gosub60500:return
2020 printa$(3);:gosub60500:return
2030 printa$(4);:gosub60500:return
2040 printa$(5);:gosub60500:return
6000 open15,8,15,"r0:hello connect=hello connect":input#15,er:close15
6010 print"[147]";:ifer<>63thenend
6020 load"hello connect",8
60000 if(sp)thenreturn
60003 fora=1tolen(a$):g$(a)=mid$(a$,a,1)
60010 if(g$(a)<"[193]"org$(a)>"[218]")then60030
60020 g$(a)=chr$(asc(g$(a))-128)
60030 next:a$=""
60040 forb=1toa-1:a$=a$+g$(b):next:return
60500 printbk$;:fora=1tonc:g$(a)=""
60510 geta$:ifa$=""then60510
60512 if(a$>="[193]"anda$<="[218]")ora$="[160]"then60530
60513 ifa$=chr$(13)thenprint"[157] ":goto60540
60516 ifa$=chr$(20)anda>1thena=a-1:print"[157][157] [157][157]"bk$;:g$(a)="":goto60510
60520 ifa$<" "ora$>chr$(127)then60510
60530 print"[157]"a$;:poke212,.:printbk$;:g$(a)=a$:next
60540 a$="":forb=1toa-1:a$=a$+g$(b):next:return
60600 rem no printer
60610 print"[147]"spc(10)"[206]o printer [207]n-[204]ine..."
60620 fordl=1to3000:next:goto120